# Contributor:  Zap <ghv@netsons.org>
# Carbon Jiao 中文化

pkgname=gsnapshot-cn
_realpkgname=gsnapshot
pkgver=1.0
pkgrel=1
pkgdesc="A simple screenshot utility, lets you capture entire screen or just a region. Also provides gdisplay, an image viewer"
arch=('i686')
depends=('gtk2' 'libsm')
license=('GPL')
source=(http://downloads.sourceforge.net/sourceforge/gould/$_realpkgname-$pkgver.tar.gz
	$_realpkgname.desktop  $_realpkgname.png  cn.patch
)
url="http://www.softcraft.org/gsnapshot/"
md5sums=('ef609075546f38e7a14f6ca59f8187df')

build() {
  cd "$srcdir"
  patch -p1 -i cn.patch
  cd "$_realpkgname"
   ./autogen.sh
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir" install

  install -Dm644 "$srcdir/$_realpkgname.desktop" \
    "$pkgdir/usr/share/applications/$_realpkgname.desktop"
  install -Dm644 "$srcdir/$_realpkgname.png" \
    "$pkgdir/usr/share/pixmaps/$_realpkgname.png"
}
